1 : <?php
2 : /*--------------------------------------------------------------------------+
3 : This file is part of eStudy.
4 : ressourcen/classes/archiver/class.archiveprovider.inc.php
5 : - Module group: File Manager
6 : - Description: Interface "ArchiveProvider"
7 : - Version: $Id: interface.archiveprovider.inc.php 2348 2009-06-04 13:29:47Z commana $
8 : - Author(s): Bjoern Kasteleiner <bjoern.kasteleiner@mni.fh-giessen.de>
9 : +---------------------------------------------------------------------------+
10 : This program is free software; you can redistribute it and/or
11 : modify it under the terms of the GNU General Public License
12 : as published by the Free Software Foundation; either version 2
13 : of the License, or any later version.
14 : +---------------------------------------------------------------------------+
15 : This program is distributed in the hope that it will be useful,
16 : but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : GNU General Public License for more details.
19 : You should have received a copy of the GNU General Public License
20 : along with this program; if not, write to the Free Software
21 : Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 : +--------------------------------------------------------------------------*/
23 :
24 1 : if ( !defined("PATH_TO_ROOT") ) {
25 0 : define( "PATH_TO_ROOT", "../../../" );
26 0 : }
27 :
28 1 : require_once ("class.folder.inc.php");
29 :
30 : /**
31 : * Provides a interface for an archiver.
32 : *
33 : * An implementation should provide an archiver to archive a folder
34 : * with and without its subfolders.
35 : *
36 : * @author Bjoern Kasteleiner <bjoern.kasteleiner@mni.fh-giessen.de>
37 : * @version $Id: interface.archiveprovider.inc.php 2348 2009-06-04 13:29:47Z commana $
38 : * @see ZipProvider
39 : */
40 1 : interface ArchiveProvider {
41 : public function __construct(Folder $folder, $recursion = FALSE, $tempFile = null);
42 : public function __destruct();
43 : public function setRecursion($recursion);
44 : public function getRecursion();
45 : public function setTempFile($tempFile);
46 : public function getTempFile();
47 : public function setFolder(Folder $folder);
48 : public function getFolder();
49 : public function createArchive();
50 : public function sendArchive();
51 : public static function checkArchiveSize(Folder $folder, $recursion);
52 : }
53 :
|